package com.ecube.maintenance.pojos;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Trible Chen on 2014/9/3.
 * server provider information
 */
public class SellerInfo extends BaseInfo{

    String spID;
    String spName;
    String spNickName;
    String carBrand;
    String spLogo;
    String distance;
    String origPrice;
    String discountPrice;

    int scoreTimes;
    float scoreStarLevel;
    int favoriteTime;
    int readTimes;
    int subscribeTimes;
    int applyTimes;
    int dailyLimit;//当前剩余可预约次数
    int leftLimit;//当前剩余可预约次数

    String serviceTel;
    String rescueTel;
    String brandLogo;
    boolean isSub;//是否被该客户订阅

    List<String> images;
    List<String> rollText;//滚动信息
    List<ProductInfo> productList;
    CommentInfo comment;

    /**
     * 经度 需要从location获取
     */
    double lon;
    /**
     * 纬度 需要从location获取
     */
    double lat;
    /**
     * 地址串 location中的address值在这里获取
     */
    String address;
    /**
     * location 0 经度lon，1纬度lat
     */
    double[] location;

    public List<String> getRollText() {
        return rollText;
    }

    public void setRollText(List<String> rollText) {
        this.rollText = rollText;
    }

    public int getDailyLimit() {
        return dailyLimit;
    }

    public void setDailyLimit(int dailyLimit) {
        this.dailyLimit = dailyLimit;
    }

    public int getLeftLimit() {
        return leftLimit;
    }

    public void setLeftLimit(int leftLimit) {
        this.leftLimit = leftLimit;
    }

    public double getLon() {
        return getLocation()[0];
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public double getLat() {
        return getLocation()[1];
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

//    AddressInfo spLocation;//未使用

    public CommentInfo getComment() {
        return comment;
    }

    public void setComment(CommentInfo comment) {
        this.comment = comment;
    }

    public String getSpNickName() {
        return spNickName;
    }

    public void setSpNickName(String spNickName) {
        this.spNickName = spNickName;
    }

    public int getScoreTimes() {
        return scoreTimes;
    }

    public void setScoreTimes(int scoreTimes) {
        this.scoreTimes = scoreTimes;
    }

    public float getScoreStarLevel() {
        return scoreStarLevel;
    }

    public void setScoreStarLevel(float scoreStarLevel) {
        this.scoreStarLevel = scoreStarLevel;
    }

    public int getFavoriteTime() {
        return favoriteTime;
    }

    public void setFavoriteTime(int favoriteTime) {
        this.favoriteTime = favoriteTime;
    }

    public int getReadTimes() {
        return readTimes;
    }

    public void setReadTimes(int readTimes) {
        this.readTimes = readTimes;
    }

    public int getSubscribeTimes() {
        return subscribeTimes;
    }

    public void setSubscribeTimes(int subscribeTimes) {
        this.subscribeTimes = subscribeTimes;
    }

    public int getApplyTimes() {
        return applyTimes;
    }

    public void setApplyTimes(int applyTimes) {
        this.applyTimes = applyTimes;
    }

    public String getServiceTel() {
        return serviceTel;
    }

    public void setServiceTel(String serviceTel) {
        this.serviceTel = serviceTel;
    }

    public String getRescueTel() {
        return rescueTel;
    }

    public void setRescueTel(String rescueTel) {
        this.rescueTel = rescueTel;
    }

    public String getBrandLogo() {
        return brandLogo;
    }

    public void setBrandLogo(String brandLogo) {
        this.brandLogo = brandLogo;
    }

    public boolean isSub() {
        return isSub;
    }

    public void setSub(boolean isSub) {
        this.isSub = isSub;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public List<ProductInfo> getProductList() {
        return productList;
    }

    public void setProductList(List<ProductInfo> productList) {
        this.productList = productList;
    }

    public double[] getLocation() {
        return location;
    }

    public void setLocation(double[] location) {
        this.location = location;
    }

    public String getSpID() {
        return spID;
    }

    public void setSpID(String spID) {
        this.spID = spID;
    }

    public String getSpName() {
        return spName;
    }

    public void setSpName(String spName) {
        this.spName = spName;
    }

    public String getCarBrand() {
        return carBrand;
    }

    public void setCarBrand(String carBrand) {
        this.carBrand = carBrand;
    }

    public String getSpLogo() {
        return spLogo;
    }

    public void setSpLogo(String spLogo) {
        this.spLogo = spLogo;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getOrigPrice() {
        return origPrice;
    }

    public void setOrigPrice(String origPrice) {
        this.origPrice = origPrice;
    }

    public String getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(String discountPrice) {
        this.discountPrice = discountPrice;
    }
}
